#ifndef NETWORKMANAGER_H
#define NETWORKMANAGER_H

#include "mapmanager.h"
#include <QObject>
#include <QNetworkAccessManager>
class NetworkManager : public QObject
{
    Q_OBJECT
public:
    static NetworkManager& instance(){
        if (manager == nullptr){
            manager = new NetworkManager;
        }
        return *manager;
    }

    void getSVG(QImage** image);
    void getStation();
    void getPos(QHash<QString, QSharedPointer<Node>>* _id_node, bool* ready);
private:
    explicit NetworkManager(QObject *parent = nullptr);
    NetworkManager(const NetworkManager&) = delete;
signals:

private:
    QNetworkAccessManager* _manager;

private:
    static NetworkManager* manager;
};

#endif // NETWORKMANAGER_H
